import http from '@/utils/request'
//获取场馆列表
export async function getFieldListApi(parm){
    return await http.getRestApi("/field/list",parm)
}
//获取场馆信息
export async function getFieldByIdApi(parm){
  return await http.getRestApi("/field",parm)
}

//新增场馆
export async function addFieldApi(parm){
  return await http.post("/field",parm)
}

//编辑场馆
export async function editFieldApi(parm){
  return await http.put("/field",parm)
}

//修改场馆负责人
export async function editFieldUserApi(parm){
  return await http.put("/field/user",parm)
}

//删除场馆
export async function deleteFieldApi(parm){
  return await http.delete("/field",parm)
}

/////////////场馆预约/////////////
//获取有效场馆列表
export async function getValidFieldListApi(parm){
  return await http.get("/field/list",parm)
}
